* install stata packages ----------------------------

* egenmore 
cap ssc install egenmore
* reclink2 
cap net install dm0082, from("http://www.stata-journal.com/software/sj15-3")
* rscript 
net install rscript, from("https://raw.githubusercontent.com/reifjulian/rscript/master") replace
* strdist 
cap ssc install STRDIST
* estout
cap ssc install estout 
* reghdfe and ivreghdfe 
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")
cap ado uninstall reghdfe
net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")
cap ado uninstall ivreg2hdfe
cap ado uninstall ivreghdfe
cap ssc install ivreg2 
net install ivreghdfe, from(https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/master/src/)
* needed to fix bug on linux? 
ssc install ranktest
*binsreg 
net install binsreg, from(https://raw.githubusercontent.com/nppackages/binsreg/master/stata) replace

